<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/website/common/base.jsp"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${webname }-帮助中心</title>
<%@ include file="/website/common/common.jsp"%>
<link href="${webctx }/css/manage.css" rel="stylesheet" type="text/css" />
</head>

<body>
<%@ include file="/website/common/top.jsp"%>
<%@ include file="/website/common/head.jsp"%>
<%@ include file="/website/common/menu.jsp"%>


<div class="warp-body" style="background-color: #fff;">
	<div style="width: 100%; height: 3px; background-color: #0daeff;"></div>
	<div class="inner clearfix">
		<div class="help-con clearfix">
			<div class="help-menu fl">
				<div class="menu-title"><a href="/info/helplist">帮助中心</a></div>
				<ul>
					<a href="${ctx}/info/helplist?code=002001"><li class="${chanelCode == '002001'?'active':''}">公告</li></a>
					<a href="${ctx}/info/helplist?code=002002"><li class="${chanelCode == '002002'?'active':''}">资讯</li></a>
					<a href="${ctx}/info/helplist?code=002003"><li class="${chanelCode == '002003'?'active':''}">新手指南</li></a>
					<a href="${ctx}/info/helplist?code=002004"><li class="${chanelCode == '002004'?'active':''}">配送方式</li></a>
					<a href="${ctx}/info/helplist?code=002006"><li class="${chanelCode == '002006'?'active':''}">支付方式</li></a>
					<a href="${ctx}/info/helplist?code=002007"><li class="${chanelCode == '002007'?'active':''}">账户及会员</li></a>
					<a href="${ctx}/info/helplist?code=002009"><li class="${chanelCode == '002009'?'active':''}">关于我们</li></a>
				</ul>
			</div>
			<div class="help-list fr clearfix">
				<div class="help-cont">
					<div class="help-search fr clearfix">
						<input name="like" value="${like}" type="text" placeholder="请输入关键字">
						<a href="javascript:searchquery();">搜索</a>
					</div>
					<div class="clearfix"></div>
					<div class="help-list-con">
						<c:if test="${list != null}">
							<ul>
								<c:forEach var="info_pr" items="${list}">
									<li>
										<div class="fl text-content"><a href="/info/helpinfo?id=${info_pr.id}">${info_pr.title}</a></div>
										<div class="fl text-type">${info_pr.wcname}</div>
										<div class="fl text-time"><fmt:formatDate value="${info_pr.issuetime }" pattern="yyyy-MM-dd"/></div>
									</li>
								</c:forEach>
							</ul>
						</c:if>
						<c:if test="${helpscotegory != null}">
							<ul id="helps">
								<c:forEach var="info" items="${helpscotegory}">
									<li>
										<div class="fl text-content"><a href="/info/helpinfo?id=${info.wisid}&&code=${chanelCode}">${info.title}</a></div>
										<div class="fl text-type">${info.wcname}</div>
										<div class="fl text-time"><fmt:formatDate value="${info.issuetime }" pattern="yyyy-MM-dd"/></div>
									</li>
								</c:forEach>
							</ul>
						</c:if>
					</div>
				</div>
				<!-- 上下页 -->
				<c:if test="${pageCount >1 }">
					<div class="Pagination" style="width:100%; border:none;">

					</div>
				</c:if>
			</div>
		</div>
    </div>
</div>
<input type="hidden" name="code" value="${chanelCode}">
<script>
	function searchquery() {
		var searchinput = $("[name='like']").val();
		var url = ctx+"/info/helplist?like="+searchinput
        window.location.href = url;
    }
    $(function () {
        if(${pageCount>0}){
		   $.ajax({
			   url:"${ctx}/info/pagination",
			   type:"get",
			   data:{"pno":${pageno},"like":$("[name='like']").val(),"code":$("[name='code']").val()},
			   success:function (ret) {
				   $(".Pagination").html(ret);
			   }
		   })
		}
    })
    function query(){
        gopage(1);
    }
    function gopage(n){
        window.location.href=ctx+"/info/helplist?pno="+n+"&like="+$("[name='like']").val()+"&code="+$("[name='code']").val();
    }
    function topageclick(){
        if($("[name='topagenum']").val()!="")
            gopage($("[name='topagenum']").val());
    }
</script>
<div style="width:100%;height: 2px;background-color:#ccc;"></div>
<%@ include file="/website/common/foot-site.jsp"%>
</body>
</html>
